package main

import (
	"fmt"
)

func main() {
	fmt.Println("---------------Array--------------")
	a_a := [2]int{1,1}
	fmt.Println(a_a)
	a_b := [20]int{19:1}
	fmt.Println(a_b)
	a_c := [...]int{1,2,3,4,5}
	fmt.Println(a_c)

	fmt.Println("---------------多维Array--------------")
	a_d := [2][3]int{
		{1,1,1},
		{2,2,2}}
	fmt.Println(a_d)
	a_e := [2][3]int{
		{1:1},
		{2:2}}
	fmt.Println(a_e)

	fmt.Println("---------------冒泡排序--------------")
	a_f := [...]int{5, 2, 6, 3, 9}
	fmt.Println(a_f)
	num := len(a_f)
	for i := 0; i < num; i++ {
		for j := i+1; j < num; j++ {
			if a_f[i] < a_f[j]{
				temp := a_f[i]
				a_f[i] = a_f[j]
				a_f[j] = temp
			}
		}
	}
	fmt.Println(a_f)
}